.text-blue {
  color: @color-blue;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

/* 清除浮动 */
.clearfix {
  zoom: 1;
}

.clearfix:after {
  content: '';
  display: block;
  clear: both;
}

/*外边距溢出*/
.overflow:after {
  content: '';
  display: table;
}

/* 禁止换行,单行超出省略号 */
.ellipsis-line-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 多行显示省略号，less写法，@line是行数 */
.ellipsis-more {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ellipsis-loop(4);
.ellipsis-loop(@n, @i: 2) when (@i =< @n) {
  .ellipsis-line-@{i} {
    &:extend(.ellipsis-more);
    -webkit-line-clamp: @i;
  }
  .ellipsis-loop(@n, (@i + 1));
}

/* 文字两端对齐 */
.text-justify {
  text-align: justify;
  text-justify: inter-ideograph;
}

/*去除display: inline-block;间隙*/
.clear-spacing {
  font-size: 0;
  /*letter-spacing: -3px;*/
}

.content-wrap {
  max-width: @width-content;
  width: 90%;
  margin: 0 auto;
}

.page-wrap {
  text-align: center;
  margin: 30px 0;
}

/*markdown代码*/
.markdown-body {
  pre {
    padding: 0.5em 0;
  }

  img {
    cursor: zoom-in;
  }
}

.code-wrap {
  position: relative;
  padding-left: 60px !important;
  background-color: #f8f8f8;

  code {
    //line-height: 1.5 !important;
  }

  .code-line {
    position: absolute;
    top: 0;
    left: 0;
    //line-height: 1.5;
    padding: 0.5em 0;
    counter-reset: lineNum;
    margin-bottom: 0;

    li {
      margin: 0;

      &:before {
        content: counter(lineNum) "";
        color: #4ebbaa;
        counter-increment: lineNum;
        display: inline-block;
        width: 40px;
        text-align: center;
        border-right: solid 1px rgba(0, 0, 0, 0.53);
      }
    }
  }

  .copy {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    font-size: 14px;
    background-color: #464d5e;
    padding: 3px;
    color: #f1f1f1;
  }

  &:hover {
    .copy {
      display: block;
    }
  }
}

.pointer {
  cursor: pointer;
}

.img-dialog {
  .el-dialog__headerbtn{
    top: 5px;
    right: 5px;
    font-size: 20px;
  }
  .el-dialog__body {
    padding: 0;
  }
}

.el-tag {
  margin: 3px 0;
  cursor: pointer;
}

.el-tag + .el-tag {
  margin-left: 10px;
}

@media screen and (min-width: 1920px) {

}

@media screen and (min-width: 1200px) and (max-width: 1919px) {

}

@media screen and (min-width: 992px) and (max-width: 1199px) {

}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .markdown-body {
    img {
      cursor: auto;
    }
  }
}

@media screen and (max-width: 767px) {
  .content-wrap {
    width: 95%;
    margin: 0 auto;
  }
  .markdown-body {
    img {
      cursor: auto;
    }
  }
}
